{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) {\n    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  }\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nvar TimelineItem = function TimelineItem(_a) {\n  var _classNames, _classNames2;\n  var customizePrefixCls = _a.prefixCls,\n    className = _a.className,\n    _a$color = _a.color,\n    color = _a$color === void 0 ? 'blue' : _a$color,\n    dot = _a.dot,\n    _a$pending = _a.pending,\n    pending = _a$pending === void 0 ? false : _a$pending,\n    position = _a.position,\n    label = _a.label,\n    children = _a.children,\n    restProps = __rest(_a, [\"prefixCls\", \"className\", \"color\", \"dot\", \"pending\", \"position\", \"label\", \"children\"]);\n  var _React$useContext = React.useContext(ConfigContext),\n    getPrefixCls = _React$useContext.getPrefixCls;\n  var prefixCls = getPrefixCls('timeline', customizePrefixCls);\n  var itemClassName = classNames((_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-item\"), true), _defineProperty(_classNames, \"\".concat(prefixCls, \"-item-pending\"), pending), _classNames), className);\n  var dotClassName = classNames((_classNames2 = {}, _defineProperty(_classNames2, \"\".concat(prefixCls, \"-item-head\"), true), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-item-head-custom\"), !!dot), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-item-head-\").concat(color), true), _classNames2));\n  var customColor = /blue|red|green|gray/.test(color || '') ? undefined : color;\n  return /*#__PURE__*/React.createElement(\"li\", Object.assign({}, restProps, {\n    className: itemClassName\n  }), label && /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-item-label\")\n  }, label), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-item-tail\")\n  }), /*#__PURE__*/React.createElement(\"div\", {\n    className: dotClassName,\n    style: {\n      borderColor: customColor,\n      color: customColor\n    }\n  }, dot), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-item-content\")\n  }, children));\n};\nexport default TimelineItem;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","classNames","React","ConfigContext","TimelineItem","_a","customizePrefixCls","prefixCls","className","color","dot","pending","position","label","children","restProps","useContext","getPrefixCls","itemClassName","dotClassName","customColor","test","undefined","createElement","assign","style","borderColor"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/timeline/TimelineItem.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nconst TimelineItem = _a => {\n  var {\n      prefixCls: customizePrefixCls,\n      className,\n      color = 'blue',\n      dot,\n      pending = false,\n      position /** Dead, but do not pass in <li {...omit()} */,\n      label,\n      children\n    } = _a,\n    restProps = __rest(_a, [\"prefixCls\", \"className\", \"color\", \"dot\", \"pending\", \"position\", \"label\", \"children\"]);\n  const {\n    getPrefixCls\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('timeline', customizePrefixCls);\n  const itemClassName = classNames({\n    [`${prefixCls}-item`]: true,\n    [`${prefixCls}-item-pending`]: pending\n  }, className);\n  const dotClassName = classNames({\n    [`${prefixCls}-item-head`]: true,\n    [`${prefixCls}-item-head-custom`]: !!dot,\n    [`${prefixCls}-item-head-${color}`]: true\n  });\n  const customColor = /blue|red|green|gray/.test(color || '') ? undefined : color;\n  return /*#__PURE__*/React.createElement(\"li\", Object.assign({}, restProps, {\n    className: itemClassName\n  }), label && /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-item-label`\n  }, label), /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-item-tail`\n  }), /*#__PURE__*/React.createElement(\"div\", {\n    className: dotClassName,\n    style: {\n      borderColor: customColor,\n      color: customColor\n    }\n  }, dot), /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-item-content`\n  }, children));\n};\nexport default TimelineItem;"],"mappings":";AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC;IAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CAAC,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;EAAC;EACjG,IAAIH,CAAC,IAAI,IAAI,IAAI,OAAOI,MAAM,CAACK,qBAAqB,KAAK,UAAU,EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEP,CAAC,GAAGC,MAAM,CAACK,qBAAqB,CAACT,CAAC,CAAC,EAAEU,CAAC,GAAGP,CAAC,CAACQ,MAAM,EAAED,CAAC,EAAE,EAAE;IAC3I,IAAIT,CAAC,CAACO,OAAO,CAACL,CAAC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